<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Pragmatic Programming Books Online Store</title>
    <!-- START:stylesheet -->
    <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
    <%= javascript_include_tag :defaults %>
    <!-- END:stylesheet -->
</head>
<body id="store">
<div id="banner">
    <% form_tag '', :method => 'get', :class => 'locale' do %>
        <%= select_tag 'locale', options_for_select(LANGUAGES, session[:locale]),
                       :onchange => 'this.form.submit()' %>
        <%= submit_tag 'submit' %>
        <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
    <% end %>
    <%= image_tag("logo.png") %>
    <%= @page_title || I18n.t('layout.title') %><!-- <label id="code.depot.e.title"/> -->

</div>
<div id="columns">
    <div id="side">
        <% if @cart %>
            <% hidden_div_if(@cart.items.empty?, :id => "cart" ) do %>
                <%= render(:partial => "cart", :object => @cart) %>
            <% end %>
        <% end %>

        <a href="/"><%= I18n.translate 'layout.side.home' %></a><br/>
        <a href="http://www..../faq"><%= I18n.t 'layout.side.questions' %></a><br/>
        <a href="http://www..../news"><%= I18n.t 'layout.side.news' %></a><br/>
        <a href="http://www..../contact"><%= I18n.t 'layout.side.contact' %></a><br/>

        <% form_tag :action => "index" do %>
            <%= text_field_tag(:search, params[:search]) %>
            <%= submit_tag "Search" %>
        <% end %>
        <%= @time_now %>
        <% if session[:user_id] %>
            <br/>
            <%= link_to 'Orders', :controller => 'orders' %><br/>
            <%= link_to 'Products', :controller => 'products' %><br/>
            <%= link_to 'Users', :controller => 'users' %><br/>
            <br/>
            <%= link_to 'Logout', :controller => 'admin', :action => 'logout' %>
        <% end %>
    </div>
    <div id="main">
        <% if flash[:notice] -%>
            <div id="notice"><%= flash[:notice] %></div>
        <% end -%>
        <%= yield :layout %><!-- <label id="code.depot.e.include"/> -->
    </div>
</div>
</body>
</html>